public class Main {
    public static void main(String[] args) {
        Ilist mySingleList = new MySingleList();
        mySingleList.addLast(12);
        mySingleList.addLast(23);
        mySingleList.addLast(34);
        mySingleList.addLast(45);
        mySingleList.addFirst(100);
        try {
            mySingleList.addIndex(6,99);
        }catch (IndexOutOf e) {
            e.printStackTrace();
        }
        mySingleList.display();
    }
}
